<?php
$this->widget('ext.mylib.widgets.Gridview.DGridView', array(
    'id'           => 'my-grid',
    'dataProvider' => $model->search(),
    'htmlOptions'  => array('class' => 'hastable'),
    'columnGroup' => array(20, 0, 110, 101),
    'columns' => array(
        array(
            'class'       => 'ext.mylib.widgets.Gridview.DIdColumn',
            'htmlOptions' => array('style' => 'text-align: center;'),
            'header' => 'Stt',
        ),
        'email',
        array(
            'name' => 'update_time',
            'header' => $model->getAttributeLabel('update_time'),
            'value' => 'Yii::app()->format->formatDateType3($data->update_time)',
        ),
        array(
            'class' => 'ext.mylib.widgets.Gridview.DButtonColumn',
            'afterDelete' => 'function(){
                showMessage("#message", "' . Yii::t('DadminModule.msg', 'deleted') . '"); 
            }',
        ),
    ),
));
?>
<div class="clearfix"></div>